package com.imooc.demo.entity;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@Data
public class Category1 {
    private Integer category1Id;
    @NotEmpty(message="类别名称不能为空")
    private String category1Name;
    @NotEmpty(message="图片路径不能为空")
    private String category1Picture;
    private String category1Remark;
    //一对多关系
    private Set<Category2> category2s ;
    //


}
